<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
		
			let arr = [10,30,5,8,20,9,38];
			// for(let i = 0; i<arr.length ;i++){
		
			
			
			//forEach使用箭头函数
			arr.forEach((item,index)=>{
				if(index == 4){
					return true; //相当于是  for循环中的 continue
				}
				console.log("true ForEach index: %d\titem:%d",index,item )				
			});
		
		</script>
	</head>
	<body>
	</body>
</html>
